package com.ruoyi.controller;


import com.camp.domain.Guanggao;
import com.camp.service.IGuanggaoService;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Anonymous
@RestController
@RequestMapping("/guanggao")
public class GuanggaolistController {
@Autowired
    private IGuanggaoService iGuanggaoService;
@GetMapping("/list")
    public AjaxResult listguanggao(){
    Guanggao guanggao=new Guanggao();
    List<Guanggao> guanggaos = iGuanggaoService.selectGuanggaoList(guanggao);
    return AjaxResult.success(guanggaos);
}
}
